Instructions Slider convert result to label

--------------------------------------------

---Explanation---

This template will change the instructions given to the participant based on whether they are right- or left-handed.

---Please note---

If you want to define a key as the right answer for a trial, please name the row in the conditions file that saves the correct answer for right-handed participants "CorrectAnswer_R" and the one for left-handed participants "CorrectAnswer_L". That way, the code in the template will consider this whe Checking whether the answer is correct or not.
  
Also, this template works with a keyboard as the response component. Replacing the keyboard with another component is possible but can be hard if you do not know how to code. If you need help with that, please contact one of the email addresses listed as PsychoPy support on the INF website (https://crc1646.pages.ub.uni-bielefeld.de/inf/website/#members).

---Add or delete a key---

To add an option, go into the code component "R_L_code" that you find in the routine "r_l".  Go to Begin experiment and add a line that looks like this:

key_3 = ""

or choose another number, based on how many keys you have already.

Then go into the code component "code" in the routine "instructions" and add the new key into each condition.
For example, if you had two keys before, the code could look like this:

if handedness == "right":
    key_1 = "f"
    key_2 = "j"
elif handedness == "left":
    key_1 = "j"
    key_2 = "f"

When you add a third key, it should look something like this in the end:

if handedness == "right":
    key_1 = "f"
    key_2 = "j"
    key_3 = "b"
elif handedness == "left":
    key_1 = "j"
    key_2 = "f"
    key_3 = "v"

To delete a key just delete all lines that list the specific key from all code snippets.

Whenever you add or delete a key, do not forget to adjust the text in the instruction accordingly, by listing the new option too or deleting the old option as well as inserting the variable name into the text. Also, check that the keyboard component in the trial has your keys as allowed keys.

------------------------------

If you have any questions regarding the usage of the template file or if you have constructive criticism on how to improve these instructions, please message one of the email addresses listed for PsychoPy support in the Gitlab of the PsychoPy workshop. Thank you!


